<?php if($sidebarStatus == 'yes'):?> 
  <body id="body" class="body">
<?php else:?>
  <body id="body" class="body-fullscreen">
  <?php endif?>
  <!--<![endif]-->
<div class="navbar">
        <div class="navbar-inner">
                <ul class="nav pull-right">
                    <li id="fat-menu" class="dropdown">
                        <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">
                            <?=$domain['name']?>
                            <i class="icon-caret-down"></i>
                        </a>

                        <ul class="dropdown-menu" style="min-width:100px">
                            <?php foreach($subdomains as $key=>$_domain):?>
                            <li><a href="<?=site_url()?>/os/setDomain?id=<?=$_domain['id']?>&ref=<?=urlencode(cur_url())?>"><?=$_domain['name']?></a></li>
                            <?php endforeach?>
                        </ul>
                    </li>
                    <li><a href="<?=dom('www')?>" class="hidden-phone visible-tablet visible-desktop" target="_blank">
                    首页
                    </a></li>
					<?php if($sidebarStatus=='yes'):?>
						<li class="doSidebarClz"><a href="#" class="hidden-phone visible-tablet visible-desktop" role="button">
						关闭侧栏<i class="icon-step-backward"></i>
						</a></li>
					<?php else:?>
						<li class="doSidebarClz"><a href="#" class="hidden-phone visible-tablet visible-desktop" role="button">
						打开侧栏<i class="icon-step-forward"></i>
						</a></li>
					<?php endif?>
					 
					<?php if($user_info['setting']):?>
                    <li id="fat-menu" class="dropdown">
                        <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-cog"></i>设置<i class="icon-caret-down"></i>
						</a>
                        <ul class="dropdown-menu">
                            <li><a href="<?=site_url()?>/os/setting">系统设置</a></li>
                        </ul>
                    </li>
					<?php endif?>
					
					<li id="fat-menu" class="dropdown">
                        <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">
                            选择模板
                            <i class="icon-caret-down"></i>
                        </a>

                        <ul class="dropdown-menu">
							<?php foreach($adm_templates as $key=>$name):?>
                            <li><a href="<?=site_url()?>/os/set?t=<?=$key?>"><?=$name?></a></li>
							<?php endforeach?>
                        </ul>
                    </li>
					
					<li id="fat-menu" class="dropdown">
                        <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-user"></i> <?=$user_info['user_name']?>
                            <i class="icon-caret-down"></i>
                        </a>

                        <ul class="dropdown-menu">
                            <li><a tabindex="-1" href="<?=site_url()?>/os/profile">我的账号</a></li>
                            <li><a tabindex="-1" href="<?=site_url()?>/os/logOut">登出</a></li>
                        </ul>
                    </li>
                    
                </ul>
                <a class="brand" href="<?=site_url()?>/os/index"><span class="first"></span> <span class="second"><?=config('site_name')?>管理后台</span></a>
        </div>
</div>